export class MyArr {
    constructor(...args){
        this.arr = args;
    }

    map(callback){
        let newArr = new MyArr();
        for(let i = 0; i < this.arr.length; i++){
            newArr = callback(this.arr[i]);
        }

        return newArr;
    }
}